package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细表
 * @TableName tb_detail
 */
@TableName(value ="tb_detail")
@Data
public class TbDetail implements Serializable {
    /**
     * 明细ID
     */
    @TableId(type = IdType.AUTO)
    private Integer detailId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 产品ID
     */
    private Integer prodId;

    /**
     * 产品名称
     */
    private String prodName;

    /**
     * 购买数量
     */
    private Integer prodCount;

    /**
     * 产品价格
     */
    private BigDecimal prodPrice;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}